<?php
class Login {
    private $message_code;

    public function signon($username, $password) {
        $username = trim($username);
        $password = trim($password);

        if($username == 'admin' && 
           $password == 'admin') {
            $this->message_code = 'Login Success';
            return TRUE;
        } else {
            $this->message_code = 'Invalid username or password';
            return FALSE;
        }
    }

    public function signout() {
        
    }

    public function get_message_code() {
        return $this->message_code;
    }
}
?>
